package com.yanqu.road.entity.activity.diggold.entity;

public class DigGoldBlockData {

    private int x;

    private int y;

    private int type;           //0是空地 1是石头 2是金子 3是地宫

    private int hp;

    private int map;       //从0开始 0是第一张地图 后序加1

    private int reward;      //特殊奖励

    private boolean linkTop;    //是否链接顶部

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getMap() {
        return map;
    }

    public void setMap(int map) {
        this.map = map;
    }

    public int getReward() {
        return reward;
    }

    public void setReward(int reward) {
        this.reward = reward;
    }

    public boolean isLinkTop() {
        return linkTop;
    }

    public void setLinkTop(boolean linkTop) {
        this.linkTop = linkTop;
    }

    //复制一个对象
    public DigGoldBlockData copy() {
        DigGoldBlockData data = new DigGoldBlockData();
        data.setX(x);
        data.setY(y);
        data.setType(type);
        data.setHp(hp);
        data.setMap(map);
        data.setReward(reward);
        data.setLinkTop(linkTop);
        return data;
    }
}
